﻿<local:DocumentBase x:Class="WPFExcelReport.JLTRWB18"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"                     
                    FontSize="16"
                    Loaded="Window_Loaded" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="105">
    <local:DocumentBase.Resources>
        <ucd:PNumConverter  x:Key="pnum"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2">
            <WrapPanel Height="34">
                <Label Content="花型号："    Width="70" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtCO" Width="114" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Pink" Panel.ZIndex="1"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="20" FontSize="18" Foreground="#FF141111" Height="33" />
                <Label Content="验布工："    Width="70" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtSTAFF" Width="95" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="Pink" Panel.ZIndex="2"
                         KeyUp="txtART_KeyUp" CharacterCasing="Upper" MaxLength="8" FontSize="18" Foreground="#FF141111" Height="33" />
                <Label Content="验布日期从" Height="32" HorizontalAlignment="Left" Margin="10,5,0,0" Name="label3" VerticalAlignment="Center" Width="96" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,2,0,0" Name="FROM_DATE" VerticalAlignment="Top" Panel.ZIndex="4"
                                    SelectedDateChanged ="FROM_DATE_SelectedDateChanged" Width="126" />
                <Label Content="到" Height="28" HorizontalAlignment="Left" Margin="10,5,0,0" Name="label4" VerticalAlignment="Top" Width="28" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,2,0,0" Name="END_DATE" VerticalAlignment="Top" Panel.ZIndex="5"
                                    SelectedDateChanged ="END_DATE_SelectedDateChanged" Width="122" />
                <CheckBox IsChecked="False" Margin="5,0,0,0" Background="White" Name="ChkART" Height="18" Width="85">合并信息</CheckBox>
                <Button Content="查询" Height="33" Margin="10,0,0,0"  Name="btnQuery" Width="96" Panel.ZIndex="9"
                        Click="btnQuery_Click"/>
                <Button Content="导出" Height="33" Margin="10,0,0,0"  Name="btnEXCEL" Width="100" Panel.ZIndex="10"
                        Click="btnEXCEL_Click"/>
            </WrapPanel>

        </StackPanel>
        <DataGrid Grid.Row="1" Margin="0,1,0,0"    
                  FontSize="14"
                              CanUserReorderColumns="True"  
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True"  
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding}" x:Name="MasterDg" >
            <DataGrid.Columns>
                <!--WBBEINDAT	SHIFT	WBFFSCHL	WBBWARSCH	WBBWMPOS	ARTICLE	STRU	WBBSTKNR	
                STARTMTR	ENDMTR	MTR	FMTR SMTR	TMTR	OMTR	QRATE	QTY	DDIS	WBBWBMLFDNR-->
                <DataGridTextColumn Header="检验日期" Binding="{Binding WBBEINDAT}" Width="Auto"/>
                <DataGridTextColumn Header="班次" Binding="{Binding SHIFT}" Width="Auto"/>
                <DataGridTextColumn Header="档车工号" Binding="{Binding SCHL}" Width="Auto"/>
                <DataGridTextColumn Header="档车工" Binding="{Binding WBFFSCHL}" Width="Auto"/>
                <DataGridTextColumn Header="验布工" Binding="{Binding WBBWARSCH}" Width="Auto"/>
                <DataGridTextColumn Header="验布车" Binding="{Binding WBBWMPOS}" Width="Auto"/>
                <DataGridTextColumn Header="花型号" Binding="{Binding ARTICLE}" Width="Auto"/>
                <DataGridTextColumn Header="组织" Binding="{Binding STRU}" Width="Auto"/>
                <DataGridTextColumn Header="布卷号" Binding="{Binding WBBSTKNR}" Width="Auto"/>
                <DataGridTextColumn Header="坯布长" Binding="{Binding PCEMTR}" Width="Auto"/>
                <DataGridTextColumn Header="开始米数" Binding="{Binding STARTMTR}" Width="Auto"/>
                <DataGridTextColumn Header="结束米数" Binding="{Binding ENDMTR}" Width="Auto"/>
                <DataGridTextColumn Header="产量" Binding="{Binding MTR}" Width="Auto"/>
                <DataGridTextColumn Header="一等米数" Binding="{Binding FMTR}" Width="Auto"/>
                <DataGridTextColumn Header="二等米数" Binding="{Binding SMTR}" Width="Auto"/>
                <DataGridTextColumn Header="三等米数" Binding="{Binding TMTR}" Width="Auto"/>
                <DataGridTextColumn Header="等外米数" Binding="{Binding OMTR}" Width="Auto"/>
                <DataGridTextColumn Header="一等品率" Binding="{Binding QRATE}" Width="Auto"/>
                <DataGridTextColumn Header="折标米数" Binding="{Binding QTY}" Width="Auto"/>
                <DataGridTextColumn Header="成品纬密" Binding="{Binding DDIS}" Width="Auto"/>
                <DataGridTextColumn Header="织机号" Binding="{Binding WBBWBMLFDNR}" Width="Auto"/>
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</local:DocumentBase>
